home *** CD-ROM | disk | FTP | other *** search
Wrap
ggggeeeettttttttxxxxtttt((((3333CCCC)))) ggggeeeettttttttxxxxtttt((((3333CCCC)))) NNNNAAAAMMMMEEEE _gggg_eeee_tttt_tttt_xxxx_tttt - retrieve a text string SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>> _cccc_hhhh_aaaa_rrrr _****_gggg_eeee_tttt_tttt_xxxx_tttt _((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_m_s_g_i_d_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_d_f_l_t__s_t_r_))))_;;;; DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN _gggg_eeee_tttt_tttt_xxxx_tttt retrieves a text string from a message file. The arguments to the function are a message identification _m_s_g_i_d and a default string _d_f_l_t__s_t_r to be used if the retrieval fails. The text strings are in files created by the _mmmm_kkkk_mmmm_ssss_gggg_ssss utility [see _mmmm_kkkk_mmmm_ssss_gggg_ssss(1)] and installed in directories in _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS. The directory _l_o_c_a_l_e can be viewed as the language in which the text strings are written. The user can request that messages be displayed in a specific language by setting environment variables. That is, the _l_o_c_a_l_e directory searched is specified by the _LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS environment variable if it is set to a non-empty value. Otherwise, it is specified by the _LLLL_AAAA_NNNN_GGGG environment variable if it is set to a non-empty value. Otherwise, the directory _CCCC is used. The user can also change the language in which the messages are displayed by invoking the _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee function with the appropriate arguments. If the locale is explicitly changed (via _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee), the pointers returned by _gggg_eeee_tttt_tttt_xxxx_tttt may no longer be valid. The following depicts the acceptable syntax of _m_s_g_i_d for a call to _gggg_eeee_tttt_tttt_xxxx_tttt. _[[[[_m_s_g_f_i_l_e_n_a_m_e_]]]]_::::_m_s_g_n_u_m_b_e_r _m_s_g_f_i_l_e_n_a_m_e indicates the message database that contains the localized version of the text string. _m_s_g_f_i_l_e_n_a_m_e must be limited to 14 characters. These characters must be selected from a set of all characters values, excluding _\\\\_0000 (null) and the ASCII codes for _//// (slash) and _:::: (colon). _m_s_g_n_u_m must be a positive number that indicates the index of the string in the message database. If _m_s_g_f_i_l_e_n_a_m_e does not exist in the locale (specified by the last call to _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee using the _LLLL_CCCC______AAAA_LLLL_LLLL or _LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS categories), or if the message number is out of bounds, _gggg_eeee_tttt_tttt_xxxx_tttt attempts to retrieve the message from the C locale. If this second retrieval fails, _gggg_eeee_tttt_tttt_xxxx_tttt uses _d_f_l_t__s_t_r. If _m_s_g_f_i_l_e_n_a_m_e is omitted, _gggg_eeee_tttt_tttt_xxxx_tttt attempts to retrieve the string from the default catalog specified by the last call to _ssss_eeee_tttt_cccc_aaaa_tttt(3C). PPPPaaaaggggeeee 1111 ggggeeeettttttttxxxxtttt((((3333CCCC)))) ggggeeeettttttttxxxxtttt((((3333CCCC)))) _gggg_eeee_tttt_tttt_xxxx_tttt outputs _MMMM_eeee_ssss_ssss_aaaa_gggg_eeee _nnnn_oooo_tttt _ffff_oooo_uuuu_nnnn_dddd_!!!!_!!!!_\\\\_nnnn if: - _m_s_g_f_i_l_e_n_a_m_e is not a valid catalog name as defined above - no catalog is specified (either explicitly or via _ssss_eeee_tttt_cccc_aaaa_tttt) - _m_s_g_n_u_m_b_e_r is not a positive number - no message could be retrieved and _d_f_l_t__s_t_r was omitted EEEEXXXXAAAAMMMMPPPPLLLLEEEE In the following code fragment, _tttt_eeee_ssss_tttt is the name of the file that contains the messages and _1111_0000 is the message number. _gggg_eeee_tttt_tttt_xxxx_tttt_((((_""""_tttt_eeee_ssss_tttt_::::_1111_0000_""""_,,,, _""""_hhhh_eeee_llll_llll_oooo _wwww_oooo_rrrr_llll_dddd_\\\\_nnnn_""""_)))) _gggg_eeee_tttt_tttt_xxxx_tttt_((((_""""_tttt_eeee_ssss_tttt_::::_1111_0000_""""_,,,, _""""_""""_)))) _ssss_eeee_tttt_cccc_aaaa_tttt_((((_""""_tttt_eeee_ssss_tttt_""""_))))_;;;; _gggg_eeee_tttt_tttt_xxxx_tttt_((((_""""_::::_1111_0000_""""_,,,, _""""_hhhh_eeee_llll_llll_oooo _wwww_oooo_rrrr_llll_dddd_\\\\_nnnn_""""_)))) FFFFIIIILLLLEEEESSSS The following files are created by _mmmm_kkkk_mmmm_ssss_gggg_ssss: default message files _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_CCCC_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_**** message files for language specified by _l_o_c_a_l_e _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_**** SSSSEEEEEEEE AAAALLLLSSSSOOOO _eeee_xxxx_ssss_tttt_rrrr(1), _gggg_eeee_tttt_tttt_xxxx_tttt(1), _mmmm_kkkk_mmmm_ssss_gggg_ssss(1), _ssss_rrrr_cccc_hhhh_tttt_xxxx_tttt(1), _llll_ffff_mmmm_tttt(3C), _pppp_ffff_mmmm_tttt(3C), _ssss_eeee_tttt_cccc_aaaa_tttt(3C), _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee(3C), _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5) PPPPaaaaggggeeee 2222